package com.example.xd.javatest.factory_test.abstract_factory;

/**
 * @auther XuDan on 2020/6/16.
 * 针对产品组
 */
public class Client {
    public static void main(String[] args) {
        CarFactory lowFactory = new LowFactory();
        lowFactory.createEngine().run();
        lowFactory.createSeat().massage();
        lowFactory.createTyre().revolve();
        System.out.println("-----------------------------");
        LuxuryFactory luxuryFactory = new LuxuryFactory();
        luxuryFactory.createEngine().run();
        luxuryFactory.createSeat().massage();
        luxuryFactory.createTyre().revolve();
    }
}
